package com.ruoyi.oss.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 阿里云OSS配置类
 * 
 * @author ruoyi
 * @date 2025-01-20
 */
@Component("ossAliyunConfig")
@ConfigurationProperties(prefix = "aliyun")
public class AliyunConfig {
    
    /** OSS配置 */
    private Oss oss = new Oss();
    
    public static class Oss {
        private String region;
        private String accessKeyId;
        private String accessKeySecret;
        private String bucket;
        
        public String getRegion() {
            return region;
        }
        
        public void setRegion(String region) {
            this.region = region;
        }
        
        public String getAccessKeyId() {
            return accessKeyId;
        }
        
        public void setAccessKeyId(String accessKeyId) {
            this.accessKeyId = accessKeyId;
        }
        
        public String getAccessKeySecret() {
            return accessKeySecret;
        }
        
        public void setAccessKeySecret(String accessKeySecret) {
            this.accessKeySecret = accessKeySecret;
        }
        
        public String getBucket() {
            return bucket;
        }
        
        public void setBucket(String bucket) {
            this.bucket = bucket;
        }
    }
    
    public Oss getOss() {
        return oss;
    }
    
    public void setOss(Oss oss) {
        this.oss = oss;
    }
} 